package com.mgz.feign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author MiaoGuoZhu
 * @date 2018/5/4 13:35
 */
@RestController
public class WebController {
    @Autowired
    FeignForwardCenter feignForwardCenter;

    @GetMapping("/feign")
    public String result (@RequestParam String name){
            return feignForwardCenter.getName(name);
    }
}
